
from qgis.PyQt.QtWidgets import QMenuBar,QToolButton,QMenu, QAction

menubar = iface.editMenu().parent()

if None in [a.deleteLater() for a in menubar.children() if a.objectName() == 'TacticsBox']:
    pass
else: 
    menubar.addMenu('&TacticsBox').setObjectName('TacticsBox')
    menubar.findChild(QMenu,'TacticsBox').addMenu('Layoutof').setObjectName('Layoutof')

#    for menu in menubar.findChildren(QMenu,'TacticsBox'):
#
#        print(menu,menu.title(),menu.objectName())
#        b=menu.addMenu('Layoutof')
#        b.setObjectName('Layoutof')
#        print(b.objectName())
'''
'''
print(dir())
__name__